using System;
using System.Collections.Generic; 
using System.Linq;  
using System.Text;   
using System.Data.Linq.Mapping;
using System.ComponentModel;

namespace MRSite.Entity  
{  
	 [Table(Name = "product_sku")]
    public class ProductSku : Entity
	{ 
		/// <summary>
		///
		/// </summary>
		[Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
		public override int id{ get; set; } 

		/// <summary>
		///文章ID
		/// </summary>
		[Column(Name = "product_id")]
		public int product_id{ get; set; } 

		/// <summary>
		///属性名称
		/// </summary>
		[Column(Name = "name")]
		public String name{ get; set; } 

		/// <summary>
		///
		/// </summary>
		[Column(Name = "sell_price")]
		public Decimal sell_price{ get; set; } 

		/// <summary>
        ///库存
		/// </summary>
		[Column(Name = "stock_quantity")]
		public int stock_quantity{ get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        [Column(Name = "weight")]
        public Decimal weight { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        [Column(Name = "shopid"), DefaultValue(0)]
        public int shopid { get; set; }

        /// <summary>
        /// 店铺设置的优惠红包
        /// </summary>
        [Column(Name = "hongbao")]
        public Decimal hongbao { get; set; }

        /// <summary>
        /// 店铺设置的赠送贡献值
        /// </summary>
        [Column(Name = "score")]
        public Decimal score { get; set; }

	 } 
}    


